package dawn.service;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

import org.apache.mina.core.session.IoSession;

public class OnlineService {

	// 游戏中的玩家，key为sessionID
	// 没有经过登录验证的玩家key为sessionID
	private static final Map<Long, IoSession> notAuthClientMap = new ConcurrentHashMap<Long, IoSession>();
	// 经过登录验证但没有登入游戏的玩家，key为OpenId
	private static final Map<String, IoSession> notLoginClientMap = new ConcurrentHashMap<String, IoSession>();


	public static Map<Long, IoSession> getNotAuthMap() {
		return notAuthClientMap;
	}

	public static Map<String, IoSession> getNotLoginMap() {
		return notLoginClientMap;
	}
}
